package com.twu.biblioteca;

/**
 * Created with IntelliJ IDEA.
 * User: root
 * Date: 7/11/13
 * Time: 12:27 AM
 * To change this template use File | Settings | File Templates.
 */
public class Movie {


    private boolean israted;
    private String movietime;
    private String moviedirector;
    private String moviename;
    private String rate;

    public Movie(String name, String time, String director) {
        //To change body of created methods use File | Settings | File Templates.
        moviename = name;
        movietime = time;
        moviedirector = director;
        israted = false;
    }

    public void setIsrated(boolean israted) {
        this.israted = israted;
    }

    public void setMovietime(String movietime) {
        this.movietime = movietime;
    }

    public void setMoviedirector(String moviedirector) {
        this.moviedirector = moviedirector;
    }

    public void setMoviename(String moviename) {
        this.moviename = moviename;
    }

    public boolean isIsrated() {
        return israted;
    }

    public String getMovietime() {
        return movietime;
    }

    public String getMoviedirector() {
        return moviedirector;
    }

    public String getMoviename() {
        return moviename;
    }

    public String getRating() {
        if( israted )
            return new String(rate);
        else
            return "N/A";
        //To change body of created methods use File | Settings | File Templates.
    }
}
